#ifndef _APP_H
#define _APP_H

#include "gd32f4xx.h"
#include "bsp_servo.h"
#include "bsp_vl53l0x.h"
#include "oled.h"
#include "usp_usart0.h"

extern float kp;
extern float kd;
extern float ki;
extern uint16_t target_pos;
extern uint16_t now_pps;
extern uint8_t endian;

//balance
void app_balance_init();
void app_balance_task();
//show
void app_show_init();
void app_show_task();

//protoal
void app_protoal_init();
void app_protoal_ps_task();
void app_protoal_pid_task();
void app_protoal_task();

#endif